package byf.jdbc;


import java.sql.Connection;
import java.sql.DriverManager;

public class Appjdbc {
    public static void main(String[] args) throws Exception {
        Class.forName("com.mysql.jdbc.Driver");
        //jdbc连接协议，主机名或ip
        String url="jdbc:mysql://localhost:33306/test?useSSL=false";
        //MySQL连接账号
        String username="root";
        //连接密码
        String password="root";
        Connection connection = DriverManager.getConnection(url, username, password);


    }
}

